import axios from 'axios';

var userService = {};
// process.env.API_HOST
userService.userLogin = function(data){
  return axios.post(process.env.API_HOST + "home/userLogin/login", data)
    .then(function(res){
      return res;
    })
    .catch(function(error){
      throw(error);
    })
};

export default userService;
